package com.ktjy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ktjy.mapper.SysRoleMapperCh06;
import com.ktjy.pojo.SysRole;
import com.ktjy.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapperCh06, SysRole> implements SysRoleService {
    @Autowired
    SysRoleMapperCh06 sysRoleMapper;
    @Override
    public int addSysRole(SysRole sysRole) {
        if (sysRole!=null){
            return sysRoleMapper.addSysRole(sysRole);
        }else {
            return 0;
        }
    }
}
